﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucSearch.ascx.cs" Inherits="TTMarketing.UserControl.SanPham.ucSearch" %>
<asp:ObjectDataSource ID="odsListProduct" runat="server" SelectMethod="Product_searchByName"
    TypeName="TTController.clsBusiness">
    <SelectParameters>
        <asp:QueryStringParameter Name="proName" QueryStringField="tensp" Type="String" />
        <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
    </SelectParameters>
</asp:ObjectDataSource>
<div class="componentheading">
    KẾT QUẢ TÌM KIẾM
</div>
<telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" DataSourceID="odsListProduct"
    PageSize="6" Width="95%">
    <ItemTemplate>
        <div class="contentpagetitle">
            <table width="100%" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td valign="top" width="100%" class="article_column">
                            <table class="contentpaneopen">
                                <tbody>
                                    <tr>
                                        <td class="contentheading" width="100%">
                                            <a href='san-pham.aspx?id=<%# Eval("ID") %>' title='<%# Eval("Name") %>'>
                                                <%# Eval("Name") %></a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table class="contentpaneopen">
                                <tbody>
                                    <tr>
                                        <td valign="top" colspan="2">
                                            <p>
                                                <strong>
                                                    <img src='<%# "Image/Upload/" + Eval("Image") %>' alt='<%# Eval("Name") %>' style="margin-top: 3px;
                                                        margin-right: 5px; float: left;" width="149" height="112">
                                                </strong>&nbsp;&nbsp;&nbsp;</p>
                                            <p>
                                                Giá :<span style="color: Red;"><strong>
                                                    <%# Convert.ToInt32(Eval("Price").ToString()) > 0 ? Eval("Price", "{0:N0} VNĐ") : "Liên hệ" %></strong></span><br />
                                                <strong><span style="color: #0000ff;">
                                                    <%# Eval("Summary") %>
                                                </span></strong>
                                            </p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                </tbody>
            </table>
        </div>
        <span class="article_separator"></span>
    </ItemTemplate>
</telerik:RadListView>
<telerik:RadDataPager ID="RadDataPager1" runat="server" BorderStyle="None" PagedControlID="RadListView1"
    Width="95%" BackColor="Transparent" PageSize="6">
    <Fields>
        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
        <telerik:RadDataPagerButtonField FieldType="Numeric" />
        <telerik:RadDataPagerButtonField FieldType="NextLast" />
        <telerik:RadDataPagerPageSizeField />
    </Fields>
</telerik:RadDataPager>
